<template>
	<view class="my-box">
    <!-- 一键登录 -->
		<my-login v-if="!token"></my-login>
    <!-- 用户信息 -->
    <my-userinfo v-else></my-userinfo>
	</view>
</template>

<script>
  import mixInBadge from "@/mixins/tabbar-badge.js"
  import {mapState,mapGetters,mapMutations} from "vuex"
	export default {
    mixins:[mixInBadge],
		data() {
			return {
				
			};
		},
    computed:{
      ...mapState("m_user",['token']),
    },
	}
</script>

<style lang="scss">
.my-box{
  background-color: blue;
  height: 100%;
}
</style>
